package 接口类的实现;

//手机类 继承open_close,take_photo两个接口  并且重写两个接口中的方法

public abstract class phone implements open_close,take_photo{
    private String system;
    private String price;
    private String name;

    public phone(){}
    public phone(String system,String price,String name){
        this.system=system;
        this.price=price;
        this.name=name;
    }



    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    //抽象方法   打印出手机的系统
    public abstract void show_system();

    //继承的抽象方法  手机开机 关机  拍照
    public abstract void photo();
    public abstract void phone_open();
    public abstract void phone_close();
}
